<?php use_helper('Number') ?>

<div id="divCartStatus">
    <div class="menu_box">
        <div class="menu_title"><?php echo ucfirst(__('shopping basket')) ?></div>
        <div class="cart_info">
            <?php if($sf_request->hasError('id')): ?>
                <div style="color: red;">
                    <?php echo __($sf_request->getError('id')) ?>
                </div>
            <?php endif; ?>
            <?php if (!empty($receipt)):?>
                <?php echo link_to(format_number_choice(
                                            '[0]no products|[1]One product|(1,+Inf]%1% products'
                                            , array('%1%' => $receipt->getItemsQnt())
                                                    , $receipt->getItemsQnt())
                                        . '&nbsp;&nbsp;&nbsp;'
                                        . format_currency($receipt->getPriceByCurrencyCode($sf_user->getAttribute('currency', 'EUR')), $sf_user->getAttribute('currency', 'EUR'))
                                    , 'cart/preview'
                            ); ?>
            <?php else: ?>
                <span class="bold">
                    <?php echo ucfirst(__('shopping basket')) ?>:
                </span>
                &nbsp;&nbsp;&nbsp;
                <?php echo __('0 products')?>
                &nbsp;&nbsp;&nbsp;<?php echo format_currency(0, $sf_user->getAttribute('currency', 'EUR'))?> 
            <?php endif; ?>
        </div>
    </div>
</div>